:root {
  /* Google Brand Colors */
  --google-blue: #4285f4;
  --google-red: #db4437;
  --google-yellow: #f4b400;
  --google-green: #0f9d58;
  --toolbar-height: 60px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Robotica", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #202124;
}

.live-api-demo {
  display: block;
  width: 100%;
  height: auto;
}

/* Toolbar Styles */
.toolbar {
  height: var(--toolbar-height);
  background-color: white;
  border-bottom: 1px solid #dadce0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.toolbar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.toolbar-left h1 {
  margin: 0;
  font-size: 1.2rem;
  color: #202124;
  font-weight: 500;
}

.toolbar-left .powered-by {
  font-size: 0.8rem;
  color: #5f6368;
  margin-top: -2px;
}

.toolbar-center {
  display: flex;
  gap: 20px;
  margin-left: 40px;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: transparent;
  color: #3c4043;
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
}

.dropdown:hover .dropbtn {
  background-color: #f1f3f4;
  color: #202124;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 300px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 8px;
  padding: 15px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid #dadce0;
  text-align: left;
}

/* Specific widths for different dropdowns */
.config-dropdown {
  min-width: 400px;
}

.media-dropdown {
  min-width: 350px;
}

.chat-dropdown {
  min-width: 350px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.debug-info {
  position: fixed;
  bottom: 10px;
  left: 10px;
  max-width: 300px;
  opacity: 0.7;
  font-size: 0.8rem;
  text-align: left;
}

/* Existing Component Styles (Adapted) */
.control-group {
  margin-bottom: 15px;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 8px;
}

.control-group h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #202124;
}

.input-group {
  margin-bottom: 10px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #5f6368;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  color: #202124;
  background-color: white;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  text-align: left;
  font-size: 0.9rem;
  color: #202124;
}

.checkbox-group input {
  margin-right: 10px;
}

.button-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

button {
  padding: 8px 16px;
  background-color: white;
  border: 1px solid #dadce0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  color: #3c4043;
  transition: all 0.2s;
}

button:hover {
  background-color: #f1f3f4;
  color: #202124;
  border-color: #dadce0;
}

button.active {
  background-color: #e8f0fe;
  color: var(--google-blue);
  border-color: var(--google-blue);
}

button.disconnect {
  background-color: var(--google-red);
  color: white;
  border-color: var(--google-red);
}

button.disconnect:hover {
  background-color: #c5221f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.video-preview {
  width: 100%;
  background-color: black;
  border-radius: 8px;
  margin-top: 10px;
}

.chat-container {
  height: 300px;
  overflow-y: auto;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #f8f9fa;
  text-align: left;
}

.chat-input-area {
  display: flex;
  gap: 10px;
}

.chat-input-area input {
  flex: 1;
}

.message {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.user {
  background-color: #e8f0fe;
  color: #1a73e8;
  align-self: flex-end;
}

.assistant {
  background-color: white;
  border: 1px solid #dadce0;
  color: #202124;
}

.system {
  font-style: italic;
  color: #5f6368;
  font-size: 0.8rem;
}

.setup-json-display {
  background-color: #f1f3f4;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-content h2 {
  margin-top: 0;
  color: #202124;
  font-size: 3rem;
}

.modal-content p {
  font-size: 2.5rem;
  color: #3c4043;
  line-height: 1.6;
}

.modal-content button {
  align-self: center;
  padding: 10px 30px;
  font-size: 1.2rem;
  background-color: var(--google-blue);
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-content button:hover {
  background-color: #3367d6;
}
